package A;

public class Add32 {
    public static String s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
    public static void main(String[] args) {

        String s="-123";
        int a=Integer.parseInt(s);
        System.out.println(a);

//        String str1="ABC";
//        String str2="ABC";
//        System.out.println(add(str1,str2));
    }


    private static String add(String str1, String str2) {
        int i1=str1.length()-1;
        int i2=str2.length()-1;
        int temp=0;
        StringBuilder res=new StringBuilder();
        while(i1>=0||i2>=0){
            int val1=i1>=0?(s.indexOf(str1.charAt(i1))):0;
            int val2=i2>=0?(s.indexOf(str2.charAt(i2))):0;
            temp=val1+val2+temp;
            res.append(s.charAt((temp%36)));
            temp/=36;
            i1--;
            i2--;
        }
        return res.reverse().toString();
    }

}
